Skip to content

Added Node JS getter from IDEA setting with automatically NPM packages installation #1566

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 22, 2022

Conversation

rudolf101
Copy link
Member

@rudolf101 rudolf101 commented Dec 21, 2022

Description

Now the path to Node.JS is taken from the IDEA settings.
In the absence of required npm packages, the user is now prompted to install them automatically.

Fixes #1556
Fixes #1564

Type of Change

  • Minor bug fix (non-breaking small changes)
  • Refactoring (typos and non-functional changes)
  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Manually

Manual Scenario

  • The path to Node JS in tests generation should be used from the IDEA settings
  • If Node JS is not found, a window appears in IDEA with an error, which is also recorded in the logs, the plugin window does not appear
  • If Node JS is found, npm package validation will be started
  • If required npm packages are found, plugin window will appear
  • If required npm packages are not found, a window appears asking the user about the automatic download of the npm package

image

Checklist (remove irrelevant options):

This is the author self-check list

  • The change followed the style guidelines of the UTBot project
  • Self-review of the code is passed
  • No new warnings
  • All manual scenarios pass locally with my changes

@rudolf101 rudolf101 added the lang-javascript Issue is related to JavaScript support label Dec 21, 2022
@rudolf101 rudolf101 merged commit 0270f4c into main Dec 22, 2022
@rudolf101 rudolf101 deleted the vladislav/node-js-requirement-check branch December 22, 2022 08:43
denis-fokin pushed a commit that referenced this pull request Dec 23, 2022
@alisevych alisevych added comp-ui Improvements of plugin UI appearence and functionality ctg-enhancement New feature, improvement or change request ctg-bug-fix PR is fixing a bug labels Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-ui Improvements of plugin UI appearence and functionality ctg-bug-fix PR is fixing a bug ctg-enhancement New feature, improvement or change request lang-javascript Issue is related to JavaScript support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Auto installation of npm packages for JavaScript test generation Path to Node JS in tests generation is not used from the IDEA settings
4 participants